package com.usv.comparepic;

import java.awt.image.BufferedImage;
import java.io.File;

import com.usv.reader.ImageReader;
import com.usv.reader.impl.ImageFileReader;


public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		File file1 = new File("image11.png");
		File file2 = new File("image33.png");
		
		ImageReader imgReader1 = new ImageFileReader(file1);
		ImageReader imgReader2 = new ImageFileReader(file2);
		
		BufferedImage bufImgOne = imgReader1.readImage();
		BufferedImage bufImgTwo = imgReader2.readImage();

		ComparePic comparator = new ComparePic();
		
		System.out.println(comparator.compareTwoImages(bufImgOne, bufImgTwo));
	}
}
